<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Kra8\Snowflake\HasSnowflakePrimary;
use Illuminate\Database\Eloquent\SoftDeletes;
class FactoryDevice extends Model
{
    use SoftDeletes;
    protected $dates = [
        'deleted_at'
    ];
    use HasSnowflakePrimary;
    protected $fillable = [
        'status', 'mac_address', 'unique_id','connection_password','user_id','device_order_id'
    ];
    public $incrementing = false;
    public function author(){
        return $this->belongsTo('App\Models\User','user_id');
    }
    public function order(){
        return $this->belongsTo('App\Models\DeviceOrder','device_order_id');
    }
}
